package cn.gson.springboot.model.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.alibaba.fastjson.JSONArray;

import cn.gson.springboot.model.mapper.CureMapper;

@Service
@Transactional(rollbackFor=Exception.class)
public class Cureserivce {//该service注解在挂号类型Controller
	@Autowired
	private CureMapper  cs;
	
	
	//查询所有医疗项目
	public JSONArray  findcure() {
		return cs.findcure();
	}
	
	//<!-- 根据医疗项目名字查询医疗项目 -->
	public JSONArray  nameYiLiao(String cure_name) {
			return cs.nameYiLiao(cure_name);
	}
}
